package com.concurrent.art.chapter7;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @Author: LIHU
 * @Date: 2019/10/10 15:36
 * @Description:
 */
public class AtomicIntegerTest {
    static AtomicInteger ai = new AtomicInteger(1);

    public static void main(String[] args) {
        System.out.println(ai.getAndIncrement());
        System.out.println(ai.get());
    }
}
